﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ZSZ.DTO;

namespace ZSZ.Iservice
{
   public interface IUserService:IServiceSupport
    {
        long AddNew(string phoneNum,string passWord);
        UserDTO GetById(long id);
        UserDTO GetByPhoneNum(string phoneNum);
        bool CheckLogin(string phoneNum,string passWord);
        void UpdatePwd(long userId,string newPassword);
        void SetUserCityId(long userId,long cityId);
        void AddError(long id);
        void ResetError(long id);
    }
}
